package com.fizzkai.p2p.bussness.service;

import com.fizzkai.p2p.bussness.domain.BidRequest;
import com.fizzkai.p2p.bussness.domain.BidRequestAuditHistory;
import com.fizzkai.p2p.core.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IBidRequestAuditHistoryService {
    int save(BidRequestAuditHistory entity);
    PageInfo<BidRequestAuditHistory> query(QueryObject qo);

    /**
     * @param id 借款单的 ID
     * @return 审核历史的 List
     */
    List<BidRequestAuditHistory> queryListByRequestId(Long id);

    /**
     * @param bidRequest 借款对象
     * @param state 审核 提交的状态
     * @param remark 审核 提交的备注
     * @param auditType 审核的 类型
     */
    void createHistory(BidRequest bidRequest, int state, String remark, int auditType);
}
